from django.conf.urls.defaults import *
from author_app.models import Author
from django.views.generic import list_detail
from django.contrib import admin

admin.autodiscover()

urlpatterns = patterns('',
    # Uncomment this for admin:
     (r'^admin/(.*)', admin.site.root),
     (r'^comments/', include('comments.urls')),
     ('^authors/$', list_detail.object_list, dict(queryset=Author.objects.all())),
     ('^authors/(?P<object_id>\d+)/$', list_detail.object_detail, dict(queryset=Author.objects.all())),
)
